# -*- encoding=utf8 -*-
__author__ = "yupf"

from airtest.core.api import *


# auto_setup(__file__)

def adults_num(n: int):
    while True:
        e = exists(Template(r"tpl1685378059282.png", record_pos=(-0.174, 0.108), resolution=(1242, 2208)))
        if not e:
            touch(Template(r"tpl1685378191470.png", record_pos=(-0.264, 0.114), resolution=(1242, 2208)))
            continue
        else:
            break

    for _ in range(0, n - 1):
        touch(Template(r"tpl1685377741151.png", record_pos=(-0.097, 0.117), resolution=(1242, 2208)))
        sleep(2)
